<?php

namespace app\controller\adminapi;

use app\libs\backend\CrudController;
use app\middleware\AuthComment;

/**
 * @api 用户管理
 * @AuthComment loginModels ["Admin"]
 */
class User extends CrudController
{
    /** 配置控制器 */
    protected function initialize()
    {
        parent::initialize();

        // 模型
        $this->modelClass = \app\model\User::class;

        // 搜索字段
        $this->listSearchFields = 'id';
    }

    public function edit()
    {
        return failed('closed');
    }

    public function delete()
    {
        return failed('closed');
    }
}
